package com.dailyblue.java.design.策略模式;

// 旅游
public class Tourism {
    private Strategy strategy;

    public Tourism(Strategy strategy) {
        this.strategy = strategy;
    }

    public void play() {
        System.out.println("准备出发旅游啊");
        String result = strategy.travelMode();
        System.out.println("乘坐" + result + "去旅游");
        System.out.println("玩的好开心呀");
    }
}
